﻿using badmati.Log.Website.Custom.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace badmati.Log.Website.Helper
{
    public static class JsonResultHelper
    {
        public static JsonResult GetJson(object data)
        {
            return new JsonNetResult()
            {
                Data = data,
                ContentType = "application/json",
                ContentEncoding = System.Text.Encoding.UTF8,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            };
        }
    }
}